import numpy as np

category = 3 # the number of category
feature = 10 # the feature of each category

filePath = 'data.csv'

with open(filePath, encoding = "utf-8") as f:
    data = np.loadtxt = (filePath, delimiter = ',')
    print(data)
